﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PaginaAjedrez.Models
{
    [Table("Usuario")]
    public class Usuario
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        public int Id { get; set; }

        [Column("nombre")]
        public String Nombre { get; set; }
        
        [Column("apellido")]
        public String Apellido { get; set; }

        [Column("nacimiento")]
        public DateTime Nacimiento { get; set; }

        [Column("PartidasGanadas")]
        public int PartidasGanadas { get; set; }

        [Column("PartidasPerdidas")]
        public int PartidasPerdidas { get; set; }
    }
}